package org.jeecg.modules.clockRecord.service;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.clockRecord.entity.ClockRecord;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * @Description: 打卡记录
 * @Author: jeecg-boot
 * @Date:   2025-01-26
 * @Version: V1.0
 */
public interface IClockRecordService extends IService<ClockRecord> {

    ClockRecord getYesterdayByAdmitGuid(String admitGuid);

    ClockRecord getTodayByAdmitGuid(String admitGuid);

    /**
     * 获取本日已出勤人员
     * @return
     */
    List<ClockRecord> getTodayAttendance();

    /**
     * 获取本日全部人员
     * @return
     */
    List<ClockRecord> getToday();

    List<Map<String, Object>> getLeft1(String start, String end);

    List<Map<String, Object>> getLeft2(String start, String end);

    List<Map<String, Object>> getCenter3();

    List<Map<String, Object>> getPersonInfo(String admitGuid, String monthStart,
                                            String nextMonthStart);

    ClockRecord getLastByAdmitGuid(String admitGuid);

}
